package com.hanthink.system.service.impl.repair;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hanthink.system.domain.repair.RepairRecordFileVo;
import com.hanthink.system.domain.repair.RequestFileInfo;
import com.hanthink.system.mapper.repair.RequestFileMapper;
import com.hanthink.system.service.repair.IRequestFileInfoService;

@Service
public class RequestFileServiceImpl implements IRequestFileInfoService {

	@Autowired
	RequestFileMapper RequestFileMapper;

	/**
	 * 根据报修单ID，查询报修多媒体文件信息
	 * 
	 * @param requestId
	 * @return
	 */
	@Override
	public List<RequestFileInfo> SelectFileByRequestId(Long requestId) {
		return RequestFileMapper.SelectFileByRequestId(requestId);
	}

	@Override
	public List<RepairRecordFileVo> SelectRepairFileByRequestId(Long requestId) {
		return RequestFileMapper.SelectRepairFileByRequestId(requestId);
	}

	@Override
	public List<RepairRecordFileVo> SelectRepairFileByRequestIdnew(Long requestId) {
		return RequestFileMapper.SelectRepairFileByRequestIdnew(requestId);
	}

	@Override
	public List<RepairRecordFileVo> selectRequestFilesnew(Long requestId) {
		return RequestFileMapper.selectRequestFilesnew(requestId);
	}

}
